<!DOCTYPE html>
<html lang="en">
  <head>
    <title>ThemeManager Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/ThemeManager" class="dashAnchor"></a>
    <a title="ThemeManager Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">ThemeKit 1.4.0 Docs</a></p>
        <p class="header-right"><a href="https://github.com/luckymarmot/ThemeKit"><img src="../img/gh.png"/>View on GitHub</a></p>
        <p class="header-right"><a href="dash-feed://http%3A%2F%2Fthemekit.nunogrilo.com%2Fdocsets%2FThemeKit.xml"><img src="../img/dash.png"/>Install in Dash</a></p>
        <p class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">ThemeKit Reference</a>
        <img id="carat" src="../img/carat.png" />
        ThemeManager Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../ThemeKit.html">ThemeKit</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/ThemeManager.html">ThemeManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ThemeManager/WindowThemePolicy.html">– WindowThemePolicy</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Notification.html">Notification</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Notification/Name.html">– Name</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Themes.html">Themes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/Theme.html">Theme</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/LightTheme.html">LightTheme</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/DarkTheme.html">DarkTheme</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SystemTheme.html">SystemTheme</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/UserTheme.html">UserTheme</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Theme%20Assets.html">Theme Assets</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/ThemeColor.html">ThemeColor</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ThemeGradient.html">ThemeGradient</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ThemeImage.html">ThemeImage</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/NSWindow.html">NSWindow</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSColor.html">NSColor</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>ThemeManager</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">@objc</span><span class="p">(</span><span class="kt">TKThemeManager</span><span class="p">)</span>
<span class="kd">public</span> <span class="kd">class</span> <span class="kt">ThemeManager</span> <span class="p">:</span> <span class="kt">NSObject</span></code></pre>

                </div>
              </div>
            <p>Use <code>ThemeManager</code> shared instance to perform app-wide theming related operations,
such as:</p>

<ul>
<li>Get information about current theme/appearance</li>
<li>Change current <code>theme</code> (can also be changed from <code>NSUserDefaults</code>)</li>
<li>List available themes</li>
<li>Define <code>ThemeKit</code> behaviour</li>
</ul>

              <div class="slightly-smaller">
                <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L23-L598">Show on GitHub</a>
              </div>
          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)sharedManager"></a>
                    <a name="//apple_ref/swift/Variable/shared" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)sharedManager">shared</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>ThemeManager shared manager.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span><span class="p">(</span><span class="n">sharedManager</span><span class="p">)</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">shared</span><span class="p">:</span> <span class="kt">ThemeManager</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L27">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Initialization%20%26%20Cleanup"></a>
                <a name="//apple_ref/swift/Section/Initialization &amp; Cleanup" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Initialization%20%26%20Cleanup"></a>
                  <h3 class="section-name"><p>Initialization &amp; Cleanup</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)isEnabled"></a>
                    <a name="//apple_ref/swift/Property/isEnabled" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)isEnabled">isEnabled</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Enables or disables ThemeKit functionality.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">isEnabled</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L44-L80">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Themes"></a>
                <a name="//apple_ref/swift/Section/Themes" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Themes"></a>
                  <h3 class="section-name"><p>Themes</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme"></a>
                    <a name="//apple_ref/swift/Property/theme" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">theme</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets or returns the current theme.</p>

<p>This property is KVO compliant. Value is stored on user defaults under key
<code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)userDefaultsThemeKey">userDefaultsThemeKey</a></code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">theme</span><span class="p">:</span> <span class="kt"><a href="../Protocols/Theme.html">Theme</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L91-L110">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)effectiveTheme"></a>
                    <a name="//apple_ref/swift/Property/effectiveTheme" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)effectiveTheme">effectiveTheme</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the current effective theme (read-only).</p>

<p>This property is KVO compliant. This can return a different result than
<code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">theme</a></code>, as if current theme is set to <code><a href="../Classes/SystemTheme.html">SystemTheme</a></code>, effective theme
will be either <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)lightTheme">lightTheme</a></code> or <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)darkTheme">darkTheme</a></code>, respecting user preference at
<strong>System Preferences &gt; General &gt; Appearance</strong>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">effectiveTheme</span><span class="p">:</span> <span class="kt"><a href="../Protocols/Theme.html">Theme</a></span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L122-L124">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)themes"></a>
                    <a name="//apple_ref/swift/Property/themes" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)themes">themes</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>List all available themes:</p>

<ul>
<li>Built-in <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)lightTheme">lightTheme</a></code></li>
<li>Built-in <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)darkTheme">darkTheme</a></code></li>
<li>Built-in <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)systemTheme">systemTheme</a></code></li>
<li>All native themes (extending <code>NSObject</code> and conforming to <code><a href="../Protocols/Theme.html">Theme</a></code> protocol)</li>
<li>All user themes (loaded from <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">.theme</a></code> files)</li>
</ul>

<p>This property is KVO compliant and will change when changes occur on user
themes folder.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">themes</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/Theme.html">Theme</a></span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L136-L168">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)userThemes"></a>
                    <a name="//apple_ref/swift/Property/userThemes" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)userThemes">userThemes</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>List all user themes (<code><a href="../Classes/UserTheme.html">UserTheme</a></code> class, loaded from <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">.theme</a></code> files)</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">userThemes</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/Theme.html">Theme</a></span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L171-L185">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)lightTheme"></a>
                    <a name="//apple_ref/swift/Variable/lightTheme" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)lightTheme">lightTheme</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Convenience method for accessing the light theme.</p>

<p>This property can be changed so that <code><a href="../Classes/SystemTheme.html">SystemTheme</a></code> resolves to this theme
instead of the default <code><a href="../Classes/LightTheme.html">LightTheme</a></code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">var</span> <span class="nv">lightTheme</span><span class="p">:</span> <span class="kt"><a href="../Protocols/Theme.html">Theme</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L197">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)darkTheme"></a>
                    <a name="//apple_ref/swift/Variable/darkTheme" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)darkTheme">darkTheme</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Convenience method for accessing the dark theme.</p>

<p>This property can be changed so that <code><a href="../Classes/SystemTheme.html">SystemTheme</a></code> resolves to this theme
instead of the default <code><a href="../Classes/DarkTheme.html">DarkTheme</a></code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">var</span> <span class="nv">darkTheme</span><span class="p">:</span> <span class="kt"><a href="../Protocols/Theme.html">Theme</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L203">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)systemTheme"></a>
                    <a name="//apple_ref/swift/Variable/systemTheme" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)systemTheme">systemTheme</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Convenience method for accessing the theme that dynamically changes to
<code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)lightTheme">ThemeManager.lightTheme</a></code> or <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)darkTheme">ThemeManager.darkTheme</a></code>, respecting user preference
at <strong>System Preferences &gt; General &gt; Appearance</strong>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">systemTheme</span><span class="p">:</span> <span class="kt"><a href="../Classes/SystemTheme.html">SystemTheme</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L208">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)defaultTheme"></a>
                    <a name="//apple_ref/swift/Variable/defaultTheme" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)defaultTheme">defaultTheme</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Set/get default theme to be used on the first run (default: <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)systemTheme">ThemeManager.systemTheme</a></code>).</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">var</span> <span class="nv">defaultTheme</span><span class="p">:</span> <span class="kt"><a href="../Protocols/Theme.html">Theme</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L211">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(im)themeWithIdentifier:"></a>
                    <a name="//apple_ref/swift/Method/theme(withIdentifier:)" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(im)themeWithIdentifier:">theme(withIdentifier:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get the theme with specified identifier.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">theme</span><span class="p">(</span><span class="n">withIdentifier</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">String</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Protocols/Theme.html">Theme</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>identifier</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The unique <code><a href="../Protocols/Theme.html#/c:@M@ThemeKit@objc(pl)TKTheme(py)identifier">Theme.identifier</a></code> string.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The <code><a href="../Protocols/Theme.html">Theme</a></code> instance with the given identifier.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L218-L225">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)userDefaultsThemeKey"></a>
                    <a name="//apple_ref/swift/Variable/userDefaultsThemeKey" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)userDefaultsThemeKey">userDefaultsThemeKey</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>User defaults key for current <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">theme</a></code>.</p>

<p>Current <code>theme.identifier</code> will be stored under the <code>&quot;ThemeKitTheme&quot;</code> <code>NSUserDefaults</code> key.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">userDefaultsThemeKey</span><span class="p">:</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L230">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(im)applyLastOrDefaultTheme"></a>
                    <a name="//apple_ref/swift/Method/applyLastOrDefaultTheme()" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(im)applyLastOrDefaultTheme">applyLastOrDefaultTheme()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Apply last applied theme, or default, if none.</p>

<p>Get last applied theme from user defaults and load it. If no theme was
previously applied, load the default theme (<code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)defaultTheme">ThemeManager.defaultTheme</a></code>).</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">applyLastOrDefaultTheme</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L236-L241">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(im)reApplyCurrentTheme"></a>
                    <a name="//apple_ref/swift/Method/reApplyCurrentTheme()" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(im)reApplyCurrentTheme">reApplyCurrentTheme()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Force-apply current <code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">theme</a></code>.</p>

<p>Normally you should not need to invoke this method, as this will
force-apply the same theme.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">reApplyCurrentTheme</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L247-L249">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/User%20Themes%20%28%60.theme%60%20files%29"></a>
                <a name="//apple_ref/swift/Section/User Themes (`.theme` files)" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/User%20Themes%20%28%60.theme%60%20files%29"></a>
                  <h3 class="section-name"><p>User Themes (<code><a href="../Classes/ThemeManager.html#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)theme">.theme</a></code> files)</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)userThemesFolderURL"></a>
                    <a name="//apple_ref/swift/Property/userThemesFolderURL" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)userThemesFolderURL">userThemesFolderURL</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Location of user provided themes (.theme files).</p>

<p>Ideally, this should be on a shared location, like <code>Application Support/{app_bundle_id}/Themes</code>
for example. Here&rsquo;s an example of how to get this folder (*):</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">applicationSupportUserThemesFolderURL</span><span class="p">:</span> <span class="kt">URL</span> <span class="p">{</span>
  <span class="k">let</span> <span class="nv">applicationSupportURLs</span> <span class="o">=</span> <span class="kt">NSSearchPathForDirectoriesInDomains</span><span class="p">(</span><span class="o">.</span><span class="n">applicationSupportDirectory</span><span class="p">,</span> <span class="o">.</span><span class="n">userDomainMask</span><span class="p">,</span> <span class="kc">true</span><span class="p">)</span>
  <span class="k">let</span> <span class="nv">thisAppSupportURL</span> <span class="o">=</span> <span class="kt">URL</span><span class="p">(</span><span class="nv">fileURLWithPath</span><span class="p">:</span> <span class="n">applicationSupportURLs</span><span class="o">.</span><span class="n">first</span><span class="o">!</span><span class="p">)</span><span class="o">.</span><span class="nf">appendingPathComponent</span><span class="p">(</span><span class="kt">Bundle</span><span class="o">.</span><span class="n">main</span><span class="o">.</span><span class="n">bundleIdentifier</span><span class="o">!</span><span class="p">)</span>
  <span class="k">return</span> <span class="n">thisAppSupportURL</span><span class="o">.</span><span class="nf">appendingPathComponent</span><span class="p">(</span><span class="s">"Themes"</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

<p>*: force wrapping (!) is for illustrative purposes only.</p>

<p>You can also bundle these files with your application bundle, if you 
don&rsquo;t want them to be changed.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">userThemesFolderURL</span><span class="p">:</span> <span class="kt">URL</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L280-L329">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Appearances"></a>
                <a name="//apple_ref/swift/Section/Appearances" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Appearances"></a>
                  <h3 class="section-name"><p>Appearances</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)effectiveThemeAppearance"></a>
                    <a name="//apple_ref/swift/Property/effectiveThemeAppearance" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)effectiveThemeAppearance">effectiveThemeAppearance</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Appearance in use for effective theme.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">effectiveThemeAppearance</span><span class="p">:</span> <span class="kt">NSAppearance</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L370-L372">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)lightAppearance"></a>
                    <a name="//apple_ref/swift/Property/lightAppearance" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)lightAppearance">lightAppearance</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Convenience method to get the light appearance.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">lightAppearance</span><span class="p">:</span> <span class="kt">NSAppearance</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L375-L377">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)darkAppearance"></a>
                    <a name="//apple_ref/swift/Property/darkAppearance" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)darkAppearance">darkAppearance</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Convenience method to get the dark appearance.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">darkAppearance</span><span class="p">:</span> <span class="kt">NSAppearance</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L380-L386">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Window%20Theming%20Policy"></a>
                <a name="//apple_ref/swift/Section/Window Theming Policy" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Window%20Theming%20Policy"></a>
                  <h3 class="section-name"><p>Window Theming Policy</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:8ThemeKit0A7ManagerC06WindowA6PolicyO"></a>
                    <a name="//apple_ref/swift/Enum/WindowThemePolicy" class="dashAnchor"></a>
                    <a class="token" href="#/s:8ThemeKit0A7ManagerC06WindowA6PolicyO">WindowThemePolicy</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Window theme policies that define which windows should be automatically themed, if any.</p>
<h2 id='swift' class='heading'>Swift</h2>

<p>By default, all application windows (except <code>NSPanel</code>) will be themed (<code>.themeAllWindows</code>).</p>

<ul>
<li><code>themeAllWindows</code>:   Theme all application windows, except <code>NSPanel</code> subclasses (default).</li>
<li><code>themeSomeWindows</code>:  Only theme windows of the specified classes.</li>
<li><code>doNotThemeSomeWindows</code>: Do not theme windows of the specified classes.</li>
<li><code>doNotThemeWindows</code>: Do not theme any window.E.g.:</li>
</ul>

<p>E.g.:</p>
<pre class="highlight swift"><code><span class="kt">ThemeManager</span><span class="o">.</span><span class="n">shared</span><span class="o">.</span><span class="n">windowThemePolicy</span> <span class="o">=</span> <span class="o">.</span><span class="nf">themeSomeWindows</span><span class="p">(</span><span class="nv">windowClasses</span><span class="p">:</span> <span class="p">[</span><span class="kt">CustomWindow</span><span class="o">.</span><span class="k">self</span><span class="p">])</span>
</code></pre>
<h2 id='objective-c' class='heading'>Objective-C</h2>

<p>By default, all application windows (except <code>NSPanel</code>) will be themed (<code>TKThemeManagerWindowThemePolicyThemeAllWindows</code>).</p>

<ul>
<li><code>TKThemeManagerWindowThemePolicyThemeAllWindows</code>:   Theme all application windows, except <code>NSPanel</code> subclasses (default).</li>
<li><code>TKThemeManagerWindowThemePolicyThemeSomeWindows</code>:  Only theme windows of the specified classes (use <code>themableWindowClasses</code> property).</li>
<li><code>TKThemeManagerWindowThemePolicyDoNotThemeSomeWindows</code>:  Do not theme windows of the specified classes (use <code>notThemableWindowClasses</code> property).</li>
<li><code>TKThemeManagerWindowThemePolicyDoNotThemeWindows</code>: Do not theme any window.</li>
</ul>

<p>Example:</p>
<pre class="highlight swift"><code><span class="p">[</span><span class="kt">TKThemeManager</span> <span class="n">sharedManager</span><span class="p">]</span><span class="o">.</span><span class="n">windowThemePolicy</span> <span class="o">=</span> <span class="kt">TKThemeManagerWindowThemePolicyThemeSomeWindows</span><span class="p">;</span>
<span class="p">[</span><span class="kt">TKThemeManager</span> <span class="n">sharedManager</span><span class="p">]</span><span class="o">.</span><span class="n">themableWindowClasses</span> <span class="o">=</span> <span class="err">@</span><span class="p">[[</span><span class="kt">CustomWindow</span> <span class="kd">class</span><span class="p">]];</span>
</code></pre>
<h2 id='nswindow-extension' class='heading'>NSWindow Extension</h2>

<ul>
<li><p><code><a href="../Extensions/NSWindow.html#/c:@CM@ThemeKit@@objc(cs)NSWindow(im)theme">NSWindow.theme()</a></code></p>

<p>Theme window if appearance needs update. Doesn&rsquo;t check for policy compliance.</p></li>
<li><p><code>NSWindow.isCompliantWithWindowThemePolicy()</code></p>

<p>Check if window complies to current policy.</p></li>
<li><p><code><a href="../Extensions/NSWindow.html#/c:@CM@ThemeKit@@objc(cs)NSWindow(im)themeIfCompliantWithWindowThemePolicy">NSWindow.themeIfCompliantWithWindowThemePolicy()</a></code></p>

<p>Theme window if compliant to <code><a href="../Classes/ThemeManager.html#/s:8ThemeKit0A7ManagerC06windowA6PolicyAC06WindowaE0Ovp">windowThemePolicy</a></code> (and if appearance needs update).</p></li>
<li><p><code><a href="../Extensions/NSWindow.html#/c:@CM@ThemeKit@@objc(cs)NSWindow(cm)themeAllWindows">NSWindow.themeAllWindows()</a></code></p>

<p>Theme all windows compliant to ThemeManager.windowThemePolicy (and if appearance needs update).</p></li>
</ul>

                        <a href="../Classes/ThemeManager/WindowThemePolicy.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">WindowThemePolicy</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L438-L447">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:8ThemeKit0A7ManagerC06windowA6PolicyAC06WindowaE0Ovp"></a>
                    <a name="//apple_ref/swift/Property/windowThemePolicy" class="dashAnchor"></a>
                    <a class="token" href="#/s:8ThemeKit0A7ManagerC06windowA6PolicyAC06WindowaE0Ovp">windowThemePolicy</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Current window theme policy.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">windowThemePolicy</span><span class="p">:</span> <span class="kt"><a href="../Classes/ThemeManager/WindowThemePolicy.html">WindowThemePolicy</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L450">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Theme%20Switching"></a>
                <a name="//apple_ref/swift/Section/Theme Switching" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Theme%20Switching"></a>
                  <h3 class="section-name"><p>Theme Switching</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(py)animateThemeTransitions"></a>
                    <a name="//apple_ref/swift/Property/animateThemeTransitions" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(py)animateThemeTransitions">animateThemeTransitions</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Animate theme transitions?</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">animateThemeTransitions</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L456">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Notifications"></a>
                <a name="//apple_ref/swift/Section/Notifications" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Notifications"></a>
                  <h3 class="section-name"><p>Notifications</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)willChangeThemeNotification"></a>
                    <a name="//apple_ref/swift/Variable/willChangeThemeNotification" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)willChangeThemeNotification">willChangeThemeNotification</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>ThemeKit notification sent when current theme is about to change.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">willChangeThemeNotification</span><span class="p">:</span> <span class="kt">Notification</span><span class="o">.</span><span class="kt">Name</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L590">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)didChangeThemeNotification"></a>
                    <a name="//apple_ref/swift/Variable/didChangeThemeNotification" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)didChangeThemeNotification">didChangeThemeNotification</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>ThemeKit notification sent when current theme did change.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">didChangeThemeNotification</span><span class="p">:</span> <span class="kt">Notification</span><span class="o">.</span><span class="kt">Name</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L593">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)didChangeSystemThemeNotification"></a>
                    <a name="//apple_ref/swift/Variable/didChangeSystemThemeNotification" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ThemeKit@objc(cs)TKThemeManager(cpy)didChangeSystemThemeNotification">didChangeSystemThemeNotification</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>ThemeKit notification sent when system theme did change (System Preference &gt; General &gt; Appearance).</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">didChangeSystemThemeNotification</span><span class="p">:</span> <span class="kt">Notification</span><span class="o">.</span><span class="kt">Name</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/luckymarmot/ThemeKit/blob/master/Sources/ThemeManager.swift#L596">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>© 2016-2017 <a class="link" href="https://paw.cloud" target="_blank" rel="external">Paw</a> &amp; <a class="link" href="http://nunogrilo.com" target="_blank" rel="external">Nuno Grilo</a> under <a class="link" href="https://github.com/luckymarmot/ThemeKit/blob/master/LICENSE" target="_blank" rel="external">MIT License</a>.</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.7</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
